
<!doctype html>

<html>
	<head>
		<meta charset="utf-8" />
		<title>{$site[0]['stitle']}</title>
		<link rel="stylesheet" type="text/css" href="{$views_home}css/base.css"/>
		<style>
		/**********************top部分开始*************************/

	
		a:hover{
			color: orange;
			text-decoration: underline;
			cursor: pointer;
		}
		
		.top{
			width:100%;
			height:30px;
			background:#eff4f7;
			margin:0 auto;
			border:1px solid #e6edf1;
		}
		.top_1{
			margin-left:240px;
			line-height:30px;
			font-size:14px;
			float:left;
			cursor:pointer;
		}
		.top_2{
			float:left;
			line-height:30px;
			font-size:14px;
			margin-left:10px;
			cursor:pointer;
		}
		/***********************top部分结束*********************************/
		
		/**********************head部分开始**********************************/
		.head{
			width:970px;
			height:100px;
			background:#fcfdfe;
			margin:0 auto;
			
		}
		.logo{
			width:75px;
			height:86px;
			background:url('{$views_home}image/logo.png')no-repeat;
			float:left;
			margin-top:10px;
			cursor:pointer;
			
		}

		.login_front{
			width:280px;
			height:55px;
			float:left;
			margin-left:540px;
		
			margin-top:10px;
			cursor:pointer;
			
		}
		
		.login{
			width:70px;
			height:60px;
			float:left;
		
			border-left:1px solid #ccc;
			margin-top:10px;
		}
		.p1,.p2{
			margin:8px;
			cursor:pointer;
		}
		.p2{
			font-weight:bold;
			color:#336699;
		}
		.put_1,.put_2,.put_3,.put_4{
			
			cursor:pointer;
		}
		

		.DIV_5{
			width:250px;
			height:40px;
		
			margin-top: 4px;
		}
		.DIV_5_p{
			width:40px;
			line-height: 40px;
			float:left;
		}

		.DIV_5_input{
			display: block;
			width:80px;
			height: 20px;
			margin-top: 10px;
			float: left;
		}

		.DIV_5_img{
			display:block;
			width:100px;
			height:40px;
			margin-left:20px;
			float: left;
			
		}
	

		.head_right{
			width:320px;
			height:60px;
			float:left;
			margin-left:500px;
			margin-top:16px;
			cursor:pointer;
		}
		.login_after_left{
			width:250px;
			height:60px;
			float: left;

		}	
		


		.login_after_top{
			width:250px;
			height:30px;
		
		}

		
		.login_after_top_1{
			float: left;
			border-right: 1px #ccc solid;
			padding: 0px 10px; 
			margin-top: 8px;

		}	

		.login_after_top_2{
			float: left;
			border-right: 1px #ccc solid;
			padding: 0px 10px;  
			margin-top: 8px;
		}	

		.login_after_top_3{
			float: left;
			border-right: 1px #ccc solid;
			padding: 0px 10px;  
			margin-top: 8px;
		}	

		.login_after_top_4{
			float: left;
			padding: 0px 10px;  
			margin-top: 8px;
		}	

		.login_after_bottom{
			width:250px;
			height:30px;
		
		}

		.login_after_bottom_1{
			float: left;
			border-right: 1px #ccc solid;
			padding: 0px 10px;  
			margin-top: 4px;
			margin-left: 30px;
		}	

		.login_after_bottom_2{
			float: left;
			padding: 0px 10px; 
			margin-top: 4px; 
		}	
		
		



		.login_after_pic{
			width:60px;
			height:60px;
			background:url('{$views_home}image/login_after_pic.gif')no-repeat;
			float: left;
			border:1px solid #ccc;
		}


		/***********************head部分结束*********************************/
		
		/********************搜索部分开始**********************************/
		.sou_so{
			width:970px;
			height:136px;
			background:#fff;
			margin:0 auto;
		}
		
		.ss_one{
			width:970px;
			height:35px;
			background:#2B7ACD;
		}
		.ss_head{
			float:left;
			color:#fff;
			font-size:16px;
		
			padding:0px 18px;
			margin-top:8px;
		}
		.ss_p{
			float:left;
			color:#fff;
			font-size:16px;
			border-left:1px solid #a6b1bc;
			padding:0px 18px;
			margin-top:8px;
		}


		.ss_p1,.ss_p2,.ss_p3,.ss_p4{
				float:left;
				color:#fff;
				font-size:16px;
				border-right:1px solid #a6b1bc;
				padding:0px 18px;
				margin-top:8px;
		}
		.ss_two{
			width:970px;
			height:45px;
			background:#f6f8fa;
		}
		
		.ss_pic{
			width:38px;
			height:36px;
		//	background:url('{$views_home}image/ss_pic.png')no-repeat;
			float:left;
		}
		.ss_form{
			
			float:left;
			
		}
		.form_ss{
			display:block;
			width:408px;
			height:30px;
			font-size:16px;
		
			border:1px solid #cdcdcd;
			float:left;
			margin-top:6px;
		}
		.button_ss{
			display:block;
			width:64px;
			height:32px;
			color:#336699;
			background:#e4e9ed;
			font-weight:bold;
			font-size:16px;
			border:1px solid #cdcdcd;
			float:left;
			margin-top:6px;
		}
		.ss_t1{
			color:#444444;
			line-height:45px;
			font-weight:bold;
			float:left;
			margin-left:6px;
		}
		
		.ss_t2,.ss_t3,.ss_t4{
			float:left;
			color:#336699;
			line-height:45px;
			margin-left:6px;
		}
		
		.ss_three{
			width:970px;
			height:28px;
			background:#fff;
		
		}
		.little_pic{
			width:30px;
			height:23px;
			background:url('{$views_home}image/little_1.png')no-repeat;
			float:left;
			margin-top:4px;
		}
		.font_left{
			float:left;
			line-height:28px;
		}
		
		
		.ss_four{
			width:970px;
			height:28px;
			background:#fff;
	
		}
		.font_right_pic{
			width:19px;
			height:17px;
			background:('{$views_home}image/little_right.png')no-repeat;
			float:left;
		}
		.ss_four ul{
			float:right;
			
		}
		.font_right_1{
			float:left;
			border-right:1px solid #d5ccd5;
			padding:0px 8px;
			margin-top:4px;
		}
		
		.font_right_2{
			float:left;
			border-right:1px solid #d5ccd5;
			padding:0px 8px;
			margin-top:4px;
		}
		
		.font_right_3{
			float:left;
			
			padding:0px 8px;
			margin-top:4px;
		}
		
		
		/***********************搜索部分结束***********************/
	
		</style>
		
	</head>
	
	<body class="head_body">
		<!-- top部分开始 -->
		<div class="top clearFix">
			<p class="top_1"><a href="">设为首页</a></p>
			<p class="top_2"><a href="">收藏本页</a></p>
		</div>
		<!--  top部分结束-->
		
		<!-- head部分开始 -->
		<div class="head clearFix">
			<!-- logo部分 -->
			<div class="logo"></div>
			
			
			<!-- 登录后的前端信息-->
			{if $_COOKIE['loginAfter'] && $_COOKIE['username'] && $_COOKIE['uid']}
			<div class="head_right clearFix">
			
				<div class="login_after_left">

					<div class="login_after_top clearFix"> 
						
						<p class="login_after_top_1">
							<a href="{$web_site}set_up.php">{$_COOKIE['username']}</a>
						</p>
						<p class="login_after_top_2">
							<a href="{$web_site}set_up.php">设置</a>
						</p>

						{if $user}
						{foreach $user as $k_u => $v_u}
						{if $v_u['usertype'] == 1} 
						<p class="login_after_top_3">
							<a href="{$web_site}admin_login.php">管理中心</a>
						</p>
						{/if}
						{/foreach}
						{/if}
						<p class="login_after_top_4">
							<a href="{$admin_home}login_out.php">退出</a>
						</p>
					</div>
					<div class="login_after_bottom clearFix">
						<p class="login_after_bottom_1">
							<a href="">积分：{$v_u['grade']}</a>
						</p>
						<p  class="login_after_bottom_2">用户权限：</p>
					</div>
				</div>

				<div class="login_after_pic"><img style="width:60px;height:60px;" src="{$web_site}{$v_u['picture']}"></div>
				
			</div>
			{/if}


			<!-- 登录部分 -->
			{if empty($_COOKIE['loginAfter']) || empty($_COOKIE['username']) || empty($_COOKIE['uid'])}
			
			<div class="login_front">
				<form action="{$admin_home}login.php" method="post">
					用户名<input type="text" value="" name="username"/>
					<input type="checkbox" value="自动登陆" id="autologin"/><label for="autologin">自动登录</label>
					密码<input class="put_3" style="margin-left:12px" type="password" name="password" value=""/>
					<input class="put_4" style="width:60px" type="submit" value="登录"/>
					
					<div class="DIV_5 clearFix">
						<p class="DIV_5_p">验证码</p>
						<input class="DIV_5_input" type="text" name="verify"/>
						<img class="DIV_5_img" src="{$yzm}" onclick="this.src='{$yzm}'"/>
					</div>
				</form>
			</div>
			<div class="login">
				<p class="p1"><a href="">找回密码</a></p>
				<p class="p2"><a style="color: #145dbc;" href="{$web_site}register_index.php">立即注册</a></p>
			</div>
			
			{/if}



		</div>
		<!--  head部分结束-->
		
		
		<!-- 搜索部分开始 -->
		<div class="sou_so">
		
			<div class="ss_one clearFix">
				<div class="ss_head"><a style="color:#fff;" href="{$web_site}index.php">首页</a></div>
					{foreach $res as $k => $v}
					{if $v['parentid'] == 0}
					<p class="ss_p"><a style="color:#fff;" href="{$web_site}index.php?bigid={$v['cid']}">{$v['classname']}</a></p>
					{/if}
					{/foreach}
			</div>
			
			<div class="ss_two clearFix">
				<p class="ss_pic"><img src="{$views_home}image/ss_pic.png"></p>
				<form action="{$admin_home}find.php" method="post" class="ss_form clearFix">
					<input class="form_ss" type="text" value="" name="find" placeholder="请输入搜索内容"/><button class="button_ss">搜索</button>
				</form>
				<p class="ss_t1">热搜：</p>
				<p class="ss_t2"><a href="">活动</a></p>
				<p class="ss_t3"><a href="">交友</a></p>
				<p class="ss_t4"><a href="">教程</a></p>
			</div>
			
			<div class="ss_three">
				<p class="little_pic"></p>
				<p class="font_left">> <a href="">论坛</a></p>
			</div>

			<div class="ss_four clearFix">
				<p class="font_right_pic"></p>
				<ul class="clearFix">
				<li class="font_right_1">帖子：{$num0=count($v['motifcount'])}</li>
					<li class="font_right_2">会员：{$num=count($res_user)}</li>
					<li class="font_right_3">欢迎会员：{$_COOKIE['username']}</li>
				</ul>	
		
			</div>
		
		</div>
		<!--  搜索部分结束-->
	
	
	</body>

</html>